﻿using System.Drawing;
using System.Windows.Forms;

namespace ProjectN.Debug
{
    public partial class DebugImageBox : Form
    {
        public DebugImageBox(Image image)
        {
            InitializeComponent();
            PictureBox.Image = image;
        }

        private void DebugImageBox_FormClosing(object sender, FormClosingEventArgs e)
        {
            DialogResult res = MessageBox.Show(this, "关闭调试窗口?", "关闭确认", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2);
            if (res == DialogResult.Cancel)
                e.Cancel = true;
        }
    }
}
